<%-- 
    Document   : index
    Created on : Mar 22, 2012, 11:43:55 AM
    Author     : baez
--%>

<%@page import="phd.model.Course"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>  

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Study Plan</title>
        <link rel="stylesheet" type="text/css" href="styles/css/bootstrap.min.css">
        <style>
            body {
                padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
            }
        </style>
    </head>
    <body>
        
        <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a class="brand" href="#">PhdSchool</a>
                <div class="nav-collapse">
                    <ul class="nav">
                    <li class="active"><a href="#">Home</a></li>
                    </ul>
                </div>
            </div>
        </div>
        </div> 
        
        <div class="container">
            <div class="row">
                <div class="span12">
                    <jsp:useBean id="plan" scope="request" class="java.util.List<Course>"/>
                    <table class="table table-bordered">
                    <thead>
                        <tr>
                        <th>Course name</th>
                        </tr>
                    </thead>
                    <tbody>
                    <c:forEach items="${plan}" var="course">
                        <tr>
                        <td><c:out value="${course.name}"/></td>
                        </tr>            
                    </c:forEach>          
                    </tbody>                        
                    </table>
                </div>
            </div>
        </div>
    </body>
</html>
